package com.wydexcel.generate.properties.s;


/**
 * {
 * "id":111,
 * "type":0,
 * "map":
 * {
 * "sheet1":
 * {
 * "columnWidth":125,
 * "head":
 * {
 * "rows":
 * {
 * "1":
 * {
 * "cellIndex":1,
 * "key":"标题1"
 * "value":"title",
 * "cellStyle":{}
 * }
 * }
 * },
 * "body":
 * {
 * <p>
 * "data":[
 * {"title":"123", "cellStyle":{}}
 * ,{ "title":"3456", "cellStyle":{}  }
 * <p>
 * ]
 * }
 * <p>
 * }
 * <p>
 * }
 * }
 */
public class ExcelSegmentProperties {


    private String id;
    private int type = 0;
    private String sheetName;

    private ExcelCellBaseProperties base;
    private ExcelRichTextCollectionProperties richText;
    private ExcelLinkProperties link;


    public boolean isNull() {
        return base == null && richText == null && link == null;
    }


    public ExcelLinkProperties getLink() {
        return link;
    }

    public void setLink(ExcelLinkProperties link) {
        this.link = link;
    }

    public ExcelRichTextCollectionProperties getRichText() {
        return richText;
    }

    public void setRichText(ExcelRichTextCollectionProperties richText) {
        this.richText = richText;
    }

    public ExcelCellBaseProperties getBase() {
        return base;
    }

    public void setBase(ExcelCellBaseProperties base) {
        this.base = base;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getSheetName() {
        return sheetName;
    }

    public void setSheetName(String sheetName) {
        this.sheetName = sheetName;
    }
}
